#ifndef __newmoon_cgfxfile_h
#define __newmoon_cgfxfile_h

class GFXFile;

#include "cImage.h"
//TODO: Replace with proper image class
#include "cPalette.h"
#include "uint.h"

class GFXFile {
public:
	~GFXFile(); //TODO
	void render(Image* image, Palette* palette, u16 tileNumber, u8 paletteNumber, s16 x, s16 y); //TODO
	void render(Image* image, Palette* palette, u16 tileNumber, u8 paletteNumber, s16 x, s16 y, bool flipX, bool flipY); //TODO
	virtual void load(u8* data, u16 size) = 0;
protected:
	u8* gfxData;
private:
	u16 tilecount;
	u8 bpp;
};

#endif
